# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-libbde-python
pkgname=('python2-libbde-python' 'python-libbde-python')
_pkgname=libbde-python
pkgver=20240502
pkgrel=2
pkgdesc='Library and tools to access the BitLocker Drive Encryption (BDE) encrypted volumes.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/libbde-python/#files'
license=('LGPL3')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('4708554a3a594428005b568907cedea4b0491257c5e33e26053ab50615da43bc49f4df9cb753f488f9fd3d9aabef1a3fab43c0c4116d48627a6995d477e1a4a9')

package_python2-libbde-python() {
  depends=('python2')

  cd "libbde-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python-libbde-python() {
  depends=('python')

  cd "libbde-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

